﻿<UserControl x:Class="SqlMiM.Common.UserControls.Waiter"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="20" Width="20" Background="Transparent">

    <Grid x:Name="LayoutRoot" Background="Transparent" HorizontalAlignment="Center" VerticalAlignment="Center">
        <Grid.RenderTransform>
            <ScaleTransform x:Name="SpinnerScale" ScaleX="1.0" ScaleY="1.0" />
        </Grid.RenderTransform>
    	<Viewbox HorizontalAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5" Stretch="Fill">

    		<Viewbox.RenderTransform>

    			<RotateTransform x:Name="SpinnerRotate" Angle="0" />

    		</Viewbox.RenderTransform>

    		<Viewbox.Triggers>

    			<EventTrigger RoutedEvent="FrameworkElement.Loaded">

    				<BeginStoryboard>

                        <Storyboard>

                            <DoubleAnimation Storyboard.TargetName="SpinnerRotate" 
                                  Storyboard.TargetProperty="(RotateTransform.Angle)" 
                                  From="0" To="360" 
                                   Duration="0:0:01" 
                                   RepeatBehavior="Forever" />

                        </Storyboard>

                    </BeginStoryboard>


    			</EventTrigger>

    		</Viewbox.Triggers>

    		<Grid Width="120" Height="120">

    			<Ellipse Width="25" Height="25" Stretch="Fill" Fill="Black" Opacity="1.0" HorizontalAlignment="Left" Margin="20.17,9.764,0,0" VerticalAlignment="Top"/>

    			<Ellipse Width="25" Height="25" 
    				Stretch="Fill" 
    				Fill="Black" Opacity="0.9" HorizontalAlignment="Left" Margin="2.868,29.958,0,0" VerticalAlignment="Top"/>

    			<Ellipse Width="25" Stretch="Fill" 
    				Fill="Black" Opacity="0.8" HorizontalAlignment="Left" Margin="0,57.934,0,40.204"/>

    			<Ellipse Width="25" Height="25" 
    				Stretch="Fill" 
    				Fill="Black" Opacity="0.7" HorizontalAlignment="Left" Margin="12.12,0,0,14.822" VerticalAlignment="Bottom"/>

    			<Ellipse Width="25" Height="25" 
    				Stretch="Fill" 
    				Fill="Black" Opacity="0.6" HorizontalAlignment="Left" Margin="36.546,0,0,0" VerticalAlignment="Bottom"/>
    			<Ellipse Width="25" Height="25" 
    				Stretch="Fill" 
    				Fill="Black" Opacity="0.5" HorizontalAlignment="Right" Margin="0,0,33.493,1.297" VerticalAlignment="Bottom"/>

    			<Ellipse Width="25" Height="25" 
    				Stretch="Fill" 
    				Fill="Black" Opacity="0.4" HorizontalAlignment="Right" Margin="0,0,10.547,16.86" VerticalAlignment="Bottom"/>

    			<Ellipse Width="25" Stretch="Fill" 
    				Fill="Black" Opacity="0.3" HorizontalAlignment="Right" Margin="0,54.414,0,43.724"/>

    			<Ellipse Width="25" Height="25" 
    				Stretch="Fill" 
    				Fill="Black" Opacity="0.2" HorizontalAlignment="Right" Margin="0,26.994,5.181,0" VerticalAlignment="Top"/>

    			<Ellipse Height="25" 
    				Stretch="Fill" 
    				Fill="Black" Opacity="0.1" Margin="47.278,0.5,50.887,0" VerticalAlignment="Top"/>

    			<Ellipse Height="25" 
    				Stretch="Fill" 
    				Fill="Black" Opacity="0.1" Margin="72.3,5.5,21.9,0" VerticalAlignment="Top"/>


    		</Grid>
    	</Viewbox>

    </Grid>

</UserControl>

